<extend name="Public/base" />
<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br/>
		<button class="btn btn-info" id="add">新 增</button>
		<button class="btn btn-success ajax-post " url="{:U('setStatus?model=Action&status=1')}" target-form="ids">启 用</button>
		<button class="btn btn-warning ajax-post" url="{:U('setStatus?model=Action&status=0')}" target-form="ids">禁 用</button>
		<button class="confirm btn btn-danger ajax-post" url="{:U('setStatus?model=Action&status=-1')}" target-form="ids">删 除</button>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content ">
						<table class="table table-bordered table-striped with-check">
							<thead>
								<tr>
									<th><input type="checkbox" /></th>
									<th>编号</th>
									<th>标识</th>
									<th>名称</th>
									<th>类型</th>
									<th>规则</th>
									<th>状态</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
							<notempty name="_list">
								<volist name="_list" id="vo">
									<tr>
										<td class="taskStatus"><input type="checkbox" value="{$vo.id}" name="ids[]" class="ids"/></td>
										<td class="taskStatus">{$vo.id}</td>
										<td class="taskStatus">{$vo.name}</td>
										<td class="taskStatus"><a href="{:U('edit?id='.$vo['id'])}">{$vo.title}</a></td>
										<td class="taskStatus">{:get_action_type($vo['type'])}</td>
										<td class="taskStatus">{$vo.remark}</td>
										<td class="taskStatus">{$vo.status_text}</td>
										<td class="taskStatus">
											<a href="{:U('edit?id='.$vo['id'])}"><i class="icon-edit"></i> 编辑</a>　
											<a href="{:U('setStatus?model=action&ids='.$vo['id'].'&status='.abs(1-$vo['status']))}" class="ajax-get">
												<neq name="vo['status']" value="0">
													<i class="icon-lock"></i> 禁用
												</neq>
												<neq name="vo['status']" value="1">
													<i class="icon-unlock"></i> 启用
												</neq>
											</a>　
											<a href="{:U('Auth/setStatus?model=action&status=-1&ids='.$vo['id'])}" class="confirm ajax-get"><i class="icon-remove"></i> 删除</a>
										</td>
									</tr>
								</volist>
							<else/>
								<tr>
									<td colspan="10" class="taskStatus"> Oh~亲爱滴,暂时还没有内容! </td>
								</tr>
							</notempty>
							</tbody>
						</table>
						<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
							{$_page}
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
//新增跳转页面
$('#add').click(function(){
	window.location.href="{:U('Action/add')}";
});
//导航高亮
highlight_subnav("{:U('Action/index')}");
</script>
</block>